package com.eling.elcms.travel.webapp.controller;

import com.eling.elcms.core.webapp.controller.BaseFormController;
import com.eling.elcms.travel.model.view.DailyBusiness;
import com.eling.elcms.travel.service.IDailyBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;
import java.util.Map;

@Controller
public class DailyBueinessController extends BaseFormController{

	@Autowired
	private IDailyBusinessService service;
	
	@RequestMapping("/api/travel/dailybusiness")
    @ResponseBody
	public Map<String,DailyBusiness> query(@RequestParam("pkServicePoint") Long pkServicePoint,
			@RequestParam("start")Date start,@RequestParam("end")Date end){
		
		return service.query(pkServicePoint,start,end);
	}
	
	
}
